def call(String name = 'World') {
  echo "Hello, ${name}."
  echo "---------------------------------------------"
  echo "BUILD_NUMBER: ${env.BUILD_NUMBER}"
  echo "BRANCH_NAME: ${env.BRANCH_NAME}"
  echo env.JENKINS_HOME
  env.build_flag = "${build_flag}"
  def app_name = "${app_name}"
  def label = "jenkins-agent-${UUID.randomUUID().toString()}"
  def TMP_FLAG = "Y"

  echo "app_name: $app_name"
  echo "DEPLOY_ENV: ${params.DEPLOY_ENV}"
  
  if (TMP_FLAG == "Y") {
    echo "TMP_FLAG: Y"
  }
  // else {
  //   echo "TMP_FLAG: N"
  // }
  if (build_flag == "Y") {
    echo "build_flag: Y"
  }
}